//
//  MessageModel.h
//  markmap
//
//  Created by 甘世清 on 2024/3/29.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface MessageModel : NSObject
@property (nonatomic, assign) NSInteger type;
@property (nonatomic, copy) NSString * portrait;
@property (nonatomic, copy) NSString * name;
@property (nonatomic, copy) NSString * title;
@property (nonatomic, copy) NSString * createTime;
@property (nonatomic, copy) NSString * content;
@property (nonatomic, copy) NSString * uid;
@property (nonatomic, assign) NSInteger deleteFlag;
@property (nonatomic , copy) NSString * userId;
@property (nonatomic , copy) NSString * iduser;
@property (nonatomic , assign) BOOL isRead;
@property (nonatomic, copy) NSString * rid;

@property (nonatomic, assign) BOOL  sendType;
   @property (nonatomic, assign) CGSize cellSize;


 

/**
 对数组里存放model的某个属性对数组进行重新排序

 @param array 待排序数组
 @param increase 是否增序排列
 @param key 属性
 @return <#return value description#>
 */
+(NSArray *)sortArray:(NSArray *)array increase:(BOOL)increase byKey:(NSString *)key;
@end

NS_ASSUME_NONNULL_END
